#include "crc.h"
#include <string.h>
char databuf[255]={2,0};
char databuf2[255];
int main(int argc, char *argv[])
{
    unsigned long crc1,crc2;
    short i = 0;
    memset(databuf2,0,sizeof(databuf2));
    printf("databuf:%d  %d\n",sizeof(databuf),strlen(databuf));
    
    for(i = 1;i<100;i++){
        databuf[0]=i;
        crc1 = crc32_mpeg_2_calc(databuf,strlen(databuf))%13;
        crc2 = (crc32_mpeg_2_d(databuf,strlen(databuf))); 
        if(!databuf2[crc1&0xff]){
            databuf2[crc1&0xff] =crc1;
        }else{
            //crc5_epu_GenerateTable();
            //crc32_mpeg_2_GenerateTable();
            printf("0x%08x  %08x\n",crc1,crc1);    
            //printf("0x%02x  %02d\n",crc2,crc2);
           printf("---overlap-----%d-----%d------\n",i,databuf2[crc2%0xff]);    //  输出重复的数据
        }


    }
    
    return 0;
}
